<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>伪选择器案例</title>
    <style>
        body {
            background-color: rgb(255, 255, 255);

        }

        h1 {
            text-align: center;
        }

        .div1 {
            width: 500px;
            background-color: rgb(255, 255, 255);
            margin: 0 auto;
            padding: 20px;
        }

        .img1 {
            width: 400px;
            transition: width 0.5s, height 0.5s;
        }

        .img1:hover {
            width: 100%;
            height: auto;
        }

        .p1 {
            color: #d18b09;
            transition: color 0.5s;
        }

        .p1:hover {
            color: #ffb223
        }

        p {
            color: #545252;
        }
    </style>
</head>

<body>
    <div class="div1">
        <h1>最新新闻列表</h1>
        <p class="p1">科技巨头发布新的智能设备</p>
        <img src="./image/图3.png" class="img1">
        <p>体育赛事精彩回顾</p>
        <p>文化活动丰富市民生活</p>
    </div>
</body>

</html>